home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / ToolTipManager$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.6 KB  |  40 lines

  1. package javax.swing;
  2.  
  3. import java.awt.Point;
  4. import java.awt.event.ActionEvent;
  5. import java.awt.event.ActionListener;
  6. import java.util.EventObject;
  7.  
  8. final class ToolTipManager$1 implements ActionListener {
  9.    // $FF: synthetic field
  10.    private final ToolTipManager this$0;
  11.  
  12.    // $FF: synthetic method
  13.    ToolTipManager$1(ToolTipManager var1) {
  14.       this.this$0 = var1;
  15.    }
  16.  
  17.    public void actionPerformed(ActionEvent var1) {
  18.       if (this.this$0.tipWindow != null) {
  19.          this.this$0.hideTipWindow();
  20.       } else {
  21.          this.this$0.hideTipWindow();
  22.          this.this$0.enterTimer.stop();
  23.          this.this$0.exitTimer.stop();
  24.          this.this$0.insideTimer.stop();
  25.          this.this$0.insideComponent = (JComponent)((EventObject)var1).getSource();
  26.          if (this.this$0.insideComponent != null) {
  27.             this.this$0.toolTipText = this.this$0.insideComponent.getToolTipText();
  28.             this.this$0.preferredLocation = new Point(10, this.this$0.insideComponent.getHeight() + 10);
  29.             this.this$0.showTipWindow();
  30.             if (ToolTipManager.access$0(this.this$0) == null) {
  31.                ToolTipManager.access$2(this.this$0, ToolTipManager.access$1(this.this$0));
  32.             }
  33.  
  34.             this.this$0.insideComponent.addFocusListener(ToolTipManager.access$0(this.this$0));
  35.          }
  36.       }
  37.  
  38.    }
  39. }
  40.